package com.qilin.hscs.strategy;

import com.qilin.hscs.pojo.User;

/**
 * Created by 10188 on 2018/5/2.
 */
public class SaltGenerationStrategy {

    public static String generate(User user) {
        String timeMillis = String.valueOf(System.currentTimeMillis()).substring(7, 13);
        return user.getPhone().substring(6,11)+timeMillis;
        }

    }

